<include file="public/header"/>
</head>
<body>
<div style="margin: 15px;">
    <form class="layui-form mt20" action="{:url('Classify/classifyedit')}" lay-filter="form1" method="post">
        <div class="layui-input-block mt20">
            <input type="hidden" name="id" value="{$info.id}"><div class="layui-form-item mt10">
	<label class="layui-form-label" ><b style="color: red">* </b>分类图标路径</label>
	<div class="layui-input-inline layui-wd2">
		<if condition="$info.ico_image">
			<img src="{$info.ico_image}"  id="up_image_ico_image" style="max-height: 150px"  >
			<else/>
			<img src="__ADMIN__/images/add-img.png"  id="up_image_ico_image" style="max-height: 150px"  >
		</if>
		<button type="button" class="layui-btn myImgUpload ml20"  id="ico_image"><i class=" layui-icon">&#xe67c;</i>上传图片</button>
		<input type="hidden" name="ico_image"   id="up_input_ico_image"   lay-verify="required"   value="{$info.ico_image}"/>
	</div>
</div>
<div class="layui-form-item mt10">
	<label class="layui-form-label" for="name"><b style="color: red">* </b>分类名称</label>
	<div class="layui-input-inline layui-wd2">
		<input type="text" name="name" id="name"  placeholder="分类名称"  lay-verify="required" lay-verType="tips"   autocomplete="off"  maxlength="32" value=""  class="layui-input">
	</div>
</div><div class="layui-form-item mt10">
	<label class="layui-form-label" for="url"><b style="color: red">* </b>跳转路径</label>
	<div class="layui-input-inline layui-wd2">
		<input type="text" name="url" id="url"  placeholder="跳转路径"  lay-verify="required" lay-verType="tips"   autocomplete="off"  maxlength="50" value=""  class="layui-input">
	</div>
</div><div class="layui-form-item mt10">
	<label class="layui-form-label" for="desc"><b style="color: red">* </b>分类描述</label>
	<div class="layui-input-inline layui-wd2">
		<input type="text" name="desc" id="desc"  placeholder="分类描述"  lay-verify="required" lay-verType="tips"   autocomplete="off"  maxlength="255" value="0"  class="layui-input">
	</div>
</div><div class="layui-form-item mt10">
	<label class="layui-form-label" ><b style="color: red">* </b>删除状态</label>
	<div class="layui-input-inline layui-wd2">
		<input type="radio" name="is_delete" value="0" title="未删除" checked="">
		<input type="radio" name="is_delete" value="1" title="已删除">
	</div>
</div>
            <div class="layui-input-block mt20">
                <button class="layui-btn layui-btn-danger fr mr100" lay-submit lay-filter="iframebtn">确认保存</button>
            </div>
        </div>
    </form>
</div>
<include file="public/footer"/>
</body>

<script type="text/javascript">
    layui.use(['form','layer','laydate','upload','layedit'],function() {
        let form = layui.form,
            laydate = layui.laydate,
            upload = layui.upload,
            layedit = layui.layedit,
            layer = parent.layer === undefined ? layui.layer : top.layer;
        form.val("form1",{
                    'ico_image': '{$info.ico_image}',
                    'name': '{$info.name}',
                    'url': '{$info.url}',
                    'desc': '{$info.desc}',
                    'is_delete': '{$info.is_delete}'});
    });
</script>
</html>